package edu.lnu.ums.entities;

import edu.lnu.ums.entities.core.AbstractEntity;
import edu.lnu.ums.entities.dictionaries.Months;
import edu.lnu.ums.entities.processes.CharityProcess;
import edu.lnu.ums.entities.processes.ExpendituresProcess;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


/**
 *
 * @author Orysia
 */

@Entity
public class Charity extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @Column
    private Double donation;

    public Double getDonation() {
        return donation;
    }

    public void setDonation(Double donation) {
        this.donation = donation;
    }

    public CharityProcess getParent() {
        return parent;
    }

    public void setParent(CharityProcess parent) {
        this.parent = parent;
    }

    @ManyToOne
    @JoinColumn(name="charParent")
    private CharityProcess parent;

    @Column
    private String years;


    public String getYears() {
        return years;
    }

    public void setYears(String years) {
        this.years = years;
    }

}
